package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.Message;
import com.example.mapper.MessageMapper;
import com.example.service.IMessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 消息表 服务实现类
 * </p>
 *
 * @author yzy
 * @since 2025-08-04
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements IMessageService {

      @Autowired
    private MessageMapper messageMapper;

    @Override
    public Page<Message> selectMessageList(Page<Message> page, QueryWrapper<Message> queryWrapper) {
        return messageMapper.selectMessageList(page, queryWrapper);
    }
}
